package com.mohe.zhihui.service.interfaces;

import java.util.List;

import com.mohe.zhihui.model.Activity;
import com.mohe.zhihui.model.Project;
import com.mohe.zhihui.utils.Page;


/**
 * 活动接口
 * @author Bruce
 *
 */
public interface IActivity {
	/**
	 * 根据条件查询活动信息
	 * 
	 * @param activity
	 * @param page
	 * @return
	 */
	public List<Activity> getActivityList(Activity activity, Page page);

	/**
	 * 根据条件查询行数
	 * 
	 * @param activity
	 * @return
	 */
	public Integer getCount(Activity activity);

	/**
	 * 保存活动信息
	 * 
	 * @param activity
	 * @return
	 */
	public boolean saveActivity(Activity activity);

	/**
	 * 根据编号查询信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public Activity getActivityById(Long timeKey);

	/**
	 * 编辑活动信息
	 * 
	 * @param activity
	 * @return
	 */
	public boolean updateActivity(Activity activity);

	/**
	 * 根据编号删除信息
	 * 
	 * @param activity
	 * @return
	 */
	public boolean delActivity(Activity activity);

	/**
	 * 获取所有活动
	 * 
	 * @return
	 */
	public List<Activity> getAllActivity();
}
